package com.cangshi.entity;

import com.alibaba.fastjson.JSONObject;

/**
 * 用于返回正确的json数据
 * Created by Eoly on 2017/3/28.
 */
public class CorrectJSONObject extends JSONObject {

    public CorrectJSONObject(String msg) {
        this.put("error", 0);
        this.put("msg", msg);
    }

    public void setData(Object data){
        this.put("data",data);
    }

}
